package 数组;

public class Zuoye03232 {
    String[] stus = {"aa","bb","cc","ff"};
    public void zifuchuan(String zifu){
        for (int i = 0; i < stus.length-1; i++){
            if (zifu.equals(stus[i])){
                stus[i]=null;
            }
            if (stus[i]==null){
                stus[i]=stus[i+1];
                stus[i+1]=null;
            }
        }
    }
    public void zifu(){
        for (int i = 0; i < stus.length; i++){
            System.out.print(stus[i]+",");
        }
    }


}
